import { FormOption } from "@/components/autoForm/types/componentTypes.ts";

export interface ResPage<T> {
  total?: number;
  rows?: T[];
  code: number;
  msg: string;
  data?: T[];
  img?: string;
  uuid?: string;
  token?: string;
}

export interface IFormState {
  username: string;
  password: string;
  code: string;
  uuid: string;
}

export const formItems: FormOption<IFormState>[] = [
  {
    field: "username",
    type: "input",
    props: {
      placeholder: "请输入用户名",
      size: "large",
    },
    slot: {
      prefix: "user",
    },
  },
  {
    field: "password",
    type: "input",
    props: {
      placeholder: "请输入密码",
      size: "large",
      type: "password",
    },
    slot: {
      prefix: "lock",
    },
  },
  {
    field: "code",
    type: "input",
    props: {
      placeholder: "请输入验证码",
      size: "large",
    },
    slot: {
      suffix: "code",
    },
  },
];
